package factory.abstractFactory;

public class Customer {

    public static void main(String[] args) {
        System.out.println("==================华为系列产品==================");
        HuaWeiFactory huaWeiFactory = new HuaWeiFactory();
        Iphone Hphone = huaWeiFactory.getPhone();
        Hphone.open();
        Hphone.use();
        Hphone.close();
        Iroute Hroute = huaWeiFactory.getRoute();
        Hroute.open();
        Hroute.use();
        Hroute.close();
        System.out.println("==================小米系列产品==================");
        XiaoMiFactory xiaoMiFactory = new XiaoMiFactory();
        Iphone Xphone = xiaoMiFactory.getPhone();
        Xphone.open();
        Xphone.use();
        Xphone.close();
        Iroute Xroute = xiaoMiFactory.getRoute();
        Xroute.open();
        Xroute.use();
        Xroute.close();
        System.out.println("===========GameOver===========");

    }
}
